<template>
  <div>
    <h1 v-upper="msg"></h1>
  <Header></Header>
  <router-view></router-view>
  <Footer v-show="$route.meta.show"></Footer>
  </div>
</template>

<script>
import Header from '@/components/Header/index.vue'
import Footer from '@/components/Footer/index.vue'
export default {
  name:'',
  data(){
    return{
      msg:"abc"
    }
  },
  components:{
    Header,
    Footer
  },
  mounted(){
    // 派发一个action获取三级列表
    this.$store.dispatch('categoryList')
  }
}
</script>


<style scoped>
</style>
